import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/purchase_order_child_entity.g.dart';
import 'package:library_base/entities/generated/json/purchase_order_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class PurchaseOrderChildEntity {
  late String goodsName;
  late double purchaseWeight;
  late double price;
  late double serviceCost;
  late double totalCost;
  late String unit;

  PurchaseOrderChildEntity();

  factory PurchaseOrderChildEntity.fromJson(Map<String, dynamic> json) =>
      $PurchaseOrderChildEntityFromJson(json);

  Map<String, dynamic> toJson() => $PurchaseOrderChildEntityToJson(this);

  @override
  String toString() => json.encode(this);
}
